<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You under the Apache License, Version 2.0
  ~ (the "License"); you may not use this file except in compliance with
  ~ the License.  You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<div class="tooltip">
    <div class="flex flex-col gap-y-3">
        <ng-container *ngTemplateOutlet="data?.supportsEl ? elSupported : elNotSupported"></ng-container>
        @if (data?.showParameters) {
            <ng-container
                *ngTemplateOutlet="data?.supportsParameters ? paramSupported : paramNotSupported"></ng-container>
        }
        <ng-template #elSupported>
            <div class="flex items-baseline gap-x-3">
                <div class="fa fa-check"></div>
                <div class="flex flex-col">
                    <div class="font-bold">Expression Language (EL) supported</div>
                    <div>
                        After beginning with the start delimiter <span class="hint-pattern">$&#123;</span> use the
                        keystroke <span class="hint-keystroke">control+space</span> to see a list of available
                        functions.
                    </div>
                </div>
            </div>
        </ng-template>
        <ng-template #elNotSupported>
            <div class="flex items-baseline gap-x-3 text-gray-500">
                <div class="fa fa-ban"></div>
                <div>Expression Language (EL) not supported</div>
            </div>
        </ng-template>
        <ng-template #paramSupported>
            <div class="flex items-baseline gap-x-3">
                <div class="fa fa-check"></div>
                <div class="flex flex-col">
                    <div class="font-bold">Parameters (PARAM) supported</div>
                    @if (data?.hasParameterContext) {
                        <div>
                            After beginning with the start delimiter
                            <span class="hint-pattern font-normal">#&#123;</span> use the keystroke
                            <span class="hint-keystroke font-light">control+space</span> to see a list of available
                            parameters.
                        </div>
                    } @else {
                        <div>
                            Parameters are supported but no Parameter Context is currently bound to this Process Group.
                        </div>
                    }
                </div>
            </div>
        </ng-template>
        <ng-template #paramNotSupported>
            <div class="flex items-baseline gap-x-3 text-gray-500">
                <div class="fa fa-ban"></div>
                <div>Parameters (PARAM) not supported</div>
            </div>
        </ng-template>
    </div>
</div>
